from common.conmysql import db
from common.YamlUtil import YamlUtil
#商品热词数量
def get_goodshotsearch():
    sql = 'SELECT count(1) FROM `goods_hotsearchwords` ;'
    result = db.select_db(sql)
    return result

#读取extract.yaml文件中的goods_id
def get_goodsid():
    return  YamlUtil().read_extra_yaml()["goods_id"]